
import debounce from './modules/debounce';
import throttle from './modules/throttle';

const install = function(Vue) {
  Vue.directive('debounce', debounce)
  Vue.directive('throttle', throttle)
}

if (window.Vue) {
  window['hasRole'] = hasRole
  window['hasPermi'] = hasPermi
  Vue.use(install); // eslint-disable-line
}

export default install
